﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BPO
{
  public static class Utility
    {
        public static void BindDropDown(global::System.Windows.Forms.ComboBox cbo, string tableName,string type)
        {
            DataTable dt = BPO.DynamicData.GetData(tableName,type);
            cbo.DataSource = dt;
            cbo.DisplayMember = dt.Columns[1].ColumnName.ToString();
            cbo.ValueMember = dt.Columns[0].ColumnName.ToString();
        }
    }
}
